--独暮暂支
local dumuzhanzhi = fk.CreateSkill {
    name = "mcdh_dumuzhanzhi",
    tags = {Skill.Compulsory}
}

local U = require "packages/utility/utility"
local lib = require "packages/mcdh/lib"

dumuzhanzhi:addEffect(fk.HpRecover,{
    can_trigger = function(self, event, target, player, data)
        return target == player and player:hasSkill(self) and data.num > 0 and player.hp == player.maxHp
    end,
    on_use = function(self, event, target, player, data)
        local room = player.room
        room:loseHp(player, 1, self.name)
        player:drawCards(2, self.name)
    end
})

Fk:loadTranslationTable {
    ["mcdh_dumuzhanzhi"]="独暮暂支",
    [":mcdh_dumuzhanzhi"]="锁定技，你回复体力后，若你体力值已满，你失去1点体力，摸两张牌。",
}

return dumuzhanzhi